package com.aluka.nirvana.framework.core.model;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 分页响应实体
 * @author gongli
 * @param <T> 具体响应类型
 */
@Data
public class ResponsePageEntity<T>  implements Serializable{

	private static final long serialVersionUID = 1L;
	
    /** 总记录数 */
    private long total;
    /** 列表数据 */
    private List<T> rows;
    /** 消息状态码 */
    private int status = 200;
    

	public ResponsePageEntity() { }

	public ResponsePageEntity(List<T> result ,long total) {
		this.total = total;
		this.rows = result;
	}
	
}
